#ifndef SD_H
#define SD_H

#include <QAbstractItemModel>
#include <QModelIndex>

inline void sd(QAbstractItemModel * model,
        int x,
        int y,
        const QVariant & value,
        const QModelIndex & parent = QModelIndex()){
	model->setData(model->index(x, y, parent), value);
}
inline void sd(QAbstractItemModel * model,
        int x,
        int y,
        const QVariant & value,
        int role,
        const QModelIndex & parent = QModelIndex()){
	model->setData(model->index(x, y, parent), value, role);
}

#endif // SD_H
